﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace SqlParser
{
    class SqlColours
    {
        public static Color GetColour(SqlWordCategory swc)
        {

            System.Drawing.Color mColour = System.Drawing.Color.Black;
            switch (swc)
            {
                case SqlWordCategory.SqlCommand:
                    mColour = Color.Blue;
                    break;
                case SqlWordCategory.SqlOperator:
                    mColour = Color.FromArgb(128, 128, 128);
                    break;
                case SqlWordCategory.SqlDataType:
                    mColour = Color.Blue;
                    break;
                case SqlWordCategory.SqlObject:
                    mColour = Color.Black;
                    break;
                case SqlWordCategory.SqlSingleQuote:
                    mColour = Color.Red;
                    break;
                case SqlWordCategory.SqlLiteral:
                    mColour = Color.Red;
                    break;
                case SqlWordCategory.SqlComment:
                    mColour = Color.Green;
                    break;
                case SqlWordCategory.SqlComma:
                    mColour = Color.FromArgb(128, 128, 128);
                    break;
                case SqlWordCategory.SqlBracketOpen:
                    mColour = Color.FromArgb(128, 128, 128);
                    break;
                case SqlWordCategory.SqlBracketClose:
                    mColour = Color.FromArgb(128, 128, 128);
                    break;
                case SqlWordCategory.SqlFunction:
                    mColour = Color.Fuchsia;
                    break;
                case SqlWordCategory.SqlUnknown:
                    break;
                default:
                    break;
            }
            return mColour;
        }
    }
}
